package WGH;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class IteratorExample {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Environment env = new Environment("ENV");
		env.fromFile("test.in");
		env.fromFile("test.in.out");	
		
		HashMap<Person,Room> hmap=env.AT.getAT();
		for(Map.Entry<Person, Room> entry:hmap.entrySet()){
			Person p= entry.getKey();
			Room r = entry.getValue();
			System.out.println(p.isSmoker());
			
		}
			
		
		
	}
}